{dede:config.pagesize value="20"/}
<!DOCTYPE html
   PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
   <title>单独页面管理</title>
	<link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
	<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
   <link rel="stylesheet" href="../static/web/css/admin.css">
   <style>
      ul {
         padding: 0px;
         margin: 0px;
      }
      li {
         float: left;
         padding-right: 8px;
         line-height: 26px;
      }
   </style>
</head>
<body>
   <table width="98%" cellpadding="3" cellspacing="1" align="center"style="margin-bottom:10px" class="table maintable mt-3 mb-3">
      <tr>
         <td bgcolor="#f6f6f6" colspan="6" style="padding-left:10px">
            <form action='templets_one.php' name='sss'>
               <ul>
                  <li>关键词：</li>
                  <li><input type='text' name='keyword' value="<?php if(!empty($keyword)) $keyword = ''; ?>" style='width:160px'></li>
                  <li>标识：</li>
                  <li><?php
     $likeid = (!isset($likeid) ? '' : $likeid);
     echo "<select name='likeid' id='likeid' style='width:160px'>";
     $dsql->Execute("s","Select likeid From `#@__sgpage` group by likeid ");
     echo "<option value=''>不限</option>";
     while($arr = $dsql->GetArray('s'))
     {
        if($likeid==$arr['likeid']) echo "<option value='{$arr['likeid']}' selected>{$arr['likeid']}</option>";
        else echo "<option value='{$arr['likeid']}'>{$arr['likeid']}</option>";
     }
     echo "</select>";
  ?></li>
                  <li><button type="submit" name="button1" id="button1" class="btn btn-success btn-sm">搜索</button></li>
               </ul>
            </form>
         </td>
   </table>
   <table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable">
      <tr>
         <td height="26" background="../static/web/img/tbg.gif" colspan="7" style="padding-left:10px">
            <div style="float:left">单独页面管理</div>
            <div style="float:right">
               <a href="templets_one_add.php" class="btn btn-success btn-sm">增加一个页面</a>
               <a href="javascript:;" onClick="document.form1.submit();" class="btn btn-success btn-sm">更新选中页面</a>
               <a href="templets_one_edit.php?dopost=mkall" class="btn btn-success btn-sm">更新所有页面</a>
            </div>
         </td>
      </tr>
      <tr align="center" bgcolor="#F8FCF1" height="26">
         <td width="6%">选择</td>
         <td width="6%">编号</td>
         <td width="30%">页面名称</td>
         <td width="11%">需编译</td>
         <td width="10%">标识</td>
         <td width="12%">修改时间</td>
         <td width="21%">管理</td>
      </tr>
      <form name='form1' action='templets_one_edit.php'>
         <input type='hidden' name='dopost' value='mksel'>
         {dede:datalist empty='<tr><td colspan="7"><center>暂无内容</center></td></tr>'}
         <tr height="26" align="center"
            onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';">
            <td><input type='checkbox' name='ids[]' value='{dede:field.aid /}' class='np'></td>
            <td>{dede:field.aid /}</td>
            <td><a href='templets_one_edit.php?aid={dede:field.aid /}&dopost=edit'>{dede:field.title /}</a></td>
            <td>{dede:field.ismake function='GetIsMake(@me)'/}</td>
            <td>{dede:field.likeid /}</td>
            <td>{dede:field.uptime function='GetDateMk(@me)'/}</td>
            <td>
               <a href='templets_one_edit.php?aid={dede:field.aid /}&dopost=edit' class="btn btn-success btn-sm"><i class="fa fa-pencil-square-o"></i> 修改</a>
               <a href="templets_one_edit.php?aid={dede:field.aid /}&dopost=view" target='_blank' class="btn btn-success btn-sm"><i class="fa fa-globe"></i> 预览</a>
               <a href='templets_one_edit.php?aid={dede:field.aid /}&dopost=delete' class="btn btn-success btn-sm"><i class="fa fa-trash"></i> 删除</a>
            </td>
         </tr>
         {/dede:datalist}
      </form>
      <tr align="center" bgcolor="#f8f8f8" height="36">
         <td colspan="7">{dede:pagelist listsize='6'/}</td>
      </tr>
   </table>
   </td>
   </tr>
   </table>
</body>
</html>